/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.base.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商品Entity
 * @author alex
 * @version 2017-05-04
 */
public class BaProduct extends DataEntity<BaProduct> {
	
	private static final long serialVersionUID = 1L;
	private String no;		// 与供应链系统一致
	private String name;		// 商品名称
	private String productTypeId;		// 商品分组
	private String code;		// 商品条码
	private String size;		// size
	private String weight;		// 商品重量
	private String isIqcScan;		// 是否需要IQC扫描
	private String type;		// 商品类别
	private String validityDate;		// 有效期
	private String bandName;		// 品牌
	private String isHighPrice;		// 是否高价值品
	private String length;		// 长
	private String width;		// 宽
	private String height;		// 高
	private String grossWeight;		// 毛重
	private String netWeight;		// 净重
	private String volume;		// 体积
	private String volumeUnit;		// volume_unit
	private String status;		// 状态
	private String createName;		// 创建人
	private String updateName;		// 更新人
	
	public BaProduct() {
		super();
	}

	public BaProduct(String id){
		super(id);
	}

	@Length(min=0, max=50, message="与供应链系统一致长度必须介于 0 和 50 之间")
	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}
	
	@Length(min=0, max=50, message="商品名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=30, message="商品分组长度必须介于 0 和 30 之间")
	public String getProductTypeId() {
		return productTypeId;
	}

	public void setProductTypeId(String productTypeId) {
		this.productTypeId = productTypeId;
	}
	
	@Length(min=0, max=50, message="商品条码长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=50, message="size长度必须介于 0 和 50 之间")
	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}
	
	@Length(min=0, max=30, message="商品重量长度必须介于 0 和 30 之间")
	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}
	
	@Length(min=0, max=1, message="是否需要IQC扫描长度必须介于 0 和 1 之间")
	public String getIsIqcScan() {
		return isIqcScan;
	}

	public void setIsIqcScan(String isIqcScan) {
		this.isIqcScan = isIqcScan;
	}
	
	@Length(min=0, max=50, message="商品类别长度必须介于 0 和 50 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=50, message="有效期长度必须介于 0 和 50 之间")
	public String getValidityDate() {
		return validityDate;
	}

	public void setValidityDate(String validityDate) {
		this.validityDate = validityDate;
	}
	
	@Length(min=0, max=50, message="品牌长度必须介于 0 和 50 之间")
	public String getBandName() {
		return bandName;
	}

	public void setBandName(String bandName) {
		this.bandName = bandName;
	}
	
	@Length(min=0, max=1, message="是否高价值品长度必须介于 0 和 1 之间")
	public String getIsHighPrice() {
		return isHighPrice;
	}

	public void setIsHighPrice(String isHighPrice) {
		this.isHighPrice = isHighPrice;
	}
	
	@Length(min=0, max=30, message="长长度必须介于 0 和 30 之间")
	public String getLength() {
		return length;
	}

	public void setLength(String length) {
		this.length = length;
	}
	
	@Length(min=0, max=30, message="宽长度必须介于 0 和 30 之间")
	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}
	
	@Length(min=0, max=30, message="高长度必须介于 0 和 30 之间")
	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}
	
	@Length(min=0, max=30, message="毛重长度必须介于 0 和 30 之间")
	public String getGrossWeight() {
		return grossWeight;
	}

	public void setGrossWeight(String grossWeight) {
		this.grossWeight = grossWeight;
	}
	
	@Length(min=0, max=30, message="净重长度必须介于 0 和 30 之间")
	public String getNetWeight() {
		return netWeight;
	}

	public void setNetWeight(String netWeight) {
		this.netWeight = netWeight;
	}
	
	@Length(min=0, max=30, message="体积长度必须介于 0 和 30 之间")
	public String getVolume() {
		return volume;
	}

	public void setVolume(String volume) {
		this.volume = volume;
	}
	
	@Length(min=0, max=1, message="volume_unit长度必须介于 0 和 1 之间")
	public String getVolumeUnit() {
		return volumeUnit;
	}

	public void setVolumeUnit(String volumeUnit) {
		this.volumeUnit = volumeUnit;
	}
	
	@Length(min=0, max=50, message="状态长度必须介于 0 和 50 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=30, message="创建人长度必须介于 0 和 30 之间")
	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}
	
	@Length(min=0, max=30, message="更新人长度必须介于 0 和 30 之间")
	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}
	
}